#include<iostream>
#include<iomanip>
using namespace std;
int main(){
    int n,adult=0,child=0,m;
    cin>>n;
    if(n<=0||n>=1000) return 0;
    for(int i=0;i<n;i++){
        cin>>m;
        if(m%2==1)
            adult++;
        else child++;
    }
    cout<<adult<<" "<<fixed<<setprecision(2)<<1.0*adult/n<<" ";
    cout<<child<<" "<<fixed<<setprecision(2)<<1.0*child/n;
}